package com.example.repeatsubmit.annotation;

import com.example.repeatsubmit.utils.MyValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author caoqianhuan
 * @date 2022/8/30
 * @Description:
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Documented
@Constraint(validatedBy = {MyValidator.class})
public @interface MyConstrant {
    String message();
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
